package com.etcxy.beanslife;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App1 {
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("com/etcxy/beanslife/beans.xml");
		PersonService ps = (PersonService) ac.getBean("personServicex");
		ps.sayHi();
	}
}
